extension.ts ➔ activate   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 1
1
import * as vscode from 'vscode';
2
import fatumCommands from './commands/fatum';
3
import logger from './logger';
4
5
const MESSAGES = {
6
    'ACTIVATION' : 'Extension activated'
7
};
8
9
export function activate(context: vscode.ExtensionContext) {
10
    logger.info(MESSAGES.ACTIVATION);
11
12
    context.subscriptions.push(
13
        ...fatumCommands.map(
14
            command =>
15
                vscode.commands.registerCommand(command.id, command.handler)
16
        )
17
    );
18
}
19
20
export function deactivate() {}
21